import request from '@/utils/request'

// 查询自提油客户管理列表
export function listSelfPickup(query) {
  return request({
    url: '/report/selfPickup/list',
    method: 'get',
    params: query
  })
}
export function listSelfPickupNoPage(query) {
  return request({
    url: '/report/selfPickup/listNoPage',
    method: 'get',
    params: query
  })
}
// 查询自提油客户管理详细
export function getSelfPickup(id) {
  return request({
    url: '/report/selfPickup/' + id,
    method: 'get'
  })
}

// 新增自提油客户管理
export function addSelfPickup(data) {
  return request({
    url: '/report/selfPickup',
    method: 'post',
    data: data
  })
}

// 修改自提油客户管理
export function updateSelfPickup(data) {
  return request({
    url: '/report/selfPickup',
    method: 'put',
    data: data
  })
}

// 删除自提油客户管理
export function delSelfPickup(id) {
  return request({
    url: '/report/selfPickup/' + id,
    method: 'delete'
  })
}
